


const install = (Vue, vm) => {
	const modulesFiles = require.context('./', true, /\.vue$/)
	const modules = modulesFiles.keys().reduce((modules, modulePath) => {
	    const moduleName = modulePath.replace(/^\.\/(.*)\.\w+$/, '$1')
	    const value = modulesFiles(modulePath)
		console.log(value.default.name, value.default)
		Vue.component(value.default.name, value.default)
	    return modules
	}, {})
}

export default {
	install
}